package com.hq.ims.data.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.hq.ims.data.entityenum.EnumNotificationWay;
import com.hq.ims.data.vo.BusiIndustryCompanyMapstruct;
import com.hq.mybatis.base.BaseModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.ibatis.type.Alias;

import java.io.Serializable;

/**
* @author 蒋柏平
* @since 20241025
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
@Alias("BusiIndustryCompany")
@TableName(value = "busi_industry_company")
@ApiModel(value = "产业标记公司表", description = "产业标记公司表")
public class BusiIndustryCompany extends BaseModel<BusiIndustryCompany> implements Serializable {

    @ApiModelProperty(value = "主键")
    @TableId(value = "busi_industry_company_id",type = IdType.ASSIGN_UUID)
    private String busiIndustryCompanyId;

    @ApiModelProperty(value = "产业标记ID")
    @TableField(value = "industry_id")
    private String industryId;

    @ApiModelProperty(value = "产业标记名称")
    @TableField(value = "industry_name")
    private String industryName;

    @ApiModelProperty(value = "公司ID")
    @TableField(value = "company_id")
    private String companyId;

    @ApiModelProperty(value = "公司名称")
    @TableField(value = "company_name")
    private String companyName;

    @ApiModelProperty(value = "经营信息管理ID")
    @TableField(value = "busi_info_id")
    private String busiInfoId;

    @ApiModelProperty(value = "指定方式")
    @TableField(value = "notification_way")
    private EnumNotificationWay notificationWay;

    public BusiIndustryCompanyMapstruct.BusiIndustryCompanyRowAuthVo auth(){
        BusiIndustryCompanyMapstruct.BusiIndustryCompanyRowAuthVo auth = new BusiIndustryCompanyMapstruct.BusiIndustryCompanyRowAuthVo(this);
        return auth;
    }

}
